import axios from 'axios';
import { mainWindow, ipInfo } from './index';

export function reqAllTyre() {
  const url = `http://${ipInfo.address}:${ipInfo.cusPort}/TyreManage/AllTyre`;
  console.log('reqAllTyre:', url);
  axios({
    method: 'GET',
    url: url,
    headers: {
      // 'Session-Access-Origin': preUrl,
    },
  })
    .then(res => {
      mainWindow.webContents.send('resAllTyre', res.data);
    });
}


